package com.lenovo.nova.widget.dialog;


import android.app.Activity;
import android.os.Bundle;

import com.lenovo.nova.utils.R;
import com.lenovo.nova.widget.dialog.buildview.AdvanceDialogViewBuild;

public class ShowMessageDialog extends BaseDialogFragment{
	String TAG = "BaseDialogFragment";
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	public static void createAndShow(Activity context,long duration,String msg,OnDismissListener l){
		ShowMessageDialog dialog = new ShowMessageDialog();
		AdvanceDialogViewBuild builder = new AdvanceDialogViewBuild(dialog, context);
		builder.setBackGround(context.getResources().getDrawable(R.drawable.png_dialog_bg));
		
		dialog.setViewBuilder(builder);
		dialog.setMessage(msg);
		dialog.setOnDismissListener(l);
		dialog.show(context,duration);
	}
}
